/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiCodeEditorWrapper {
  position: relative;

  .ace_hidden-cursors {
    opacity: 0;
  }

  &.ouiCodeEditorWrapper-isEditing {
    .ace_hidden-cursors {
      opacity: 1;
    }
  }
}

.ouiCodeEditorKeyboardHint {
  position: absolute;
  top: 0;
  left: 0;
  background: transparentize($ouiColorGhost, .3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  cursor: pointer;
  height: 100%;
  width: 100%;

  &:focus {
    opacity: 1;
    border: 2px solid $ouiColorPrimary;
    z-index: $ouiZLevel1;
  }

  &.ouiCodeEditorKeyboardHint-isInactive {
    display: none;
  }
}
